<?php if($areas){ 
    foreach ($areas as $v) {
?>
	<div onclick="getGameServer(this)" data-id="<?php echo $v['id'] ?>"><?php echo $v['area_name'] ?></div>
<?php
        } 
    }
?>